package com.book.book.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.book.book.dao.RulerDao;
import com.book.book.domain.RulerDO;
import com.book.book.service.RulerService;



@Service
public class RulerServiceImpl implements RulerService {
	@Autowired
	private RulerDao rulerDao;
	
	@Override
	public RulerDO get(Integer rulerId){
		return rulerDao.get(rulerId);
	}
	
	@Override
	public List<RulerDO> list(Map<String, Object> map){
		return rulerDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return rulerDao.count(map);
	}
	
	@Override
	public int save(RulerDO ruler){
		return rulerDao.save(ruler);
	}
	
	@Override
	public int update(RulerDO ruler){
		return rulerDao.update(ruler);
	}
	
	@Override
	public int remove(Integer rulerId){
		return rulerDao.remove(rulerId);
	}
	
	@Override
	public int batchRemove(Integer[] rulerIds){
		return rulerDao.batchRemove(rulerIds);
	}
	
}
